package cn.itsource.feignClents;

import cn.itsource.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "redis-server")
public interface RedisFeignClent {

    @PostMapping("redis/set")
    public AjaxResult set(@RequestParam("key") String key , @RequestParam("value") String value);


    @GetMapping("redis/get/{key}")
    public AjaxResult get(@RequestParam("key") String key);



}
